Skip to content

brotli: include static libs in build#58935

Draft
NyaaaWhatsUpDoc wants to merge 1 commit intovoid-linux:masterfrom
NyaaaWhatsUpDoc:brotli-add-static-libs
Draft

brotli: include static libs in build#58935
NyaaaWhatsUpDoc wants to merge 1 commit intovoid-linux:masterfrom
NyaaaWhatsUpDoc:brotli-add-static-libs

Conversation

@NyaaaWhatsUpDoc
Copy link
Contributor

Testing the changes

  • I tested the changes in this PR: briefly

Updates the brotli template to build and include static library files in devel package.

cc: @leahneukirchen

post_install() {
vlicense LICENSE

# Drop the -static suffix from static libs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Upstream picks the name; if there is not a compelling reason to override it, it should remain as they intend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

their pkg-config definition doesn't mention their static libraries with differing names, so without this change it means pkg-config --libs --static output won't point correctly to the static libraries. i'm happy to remove the change if you'd prefer to stick to upstream behaviour still, but this update was to make pkg-config with brotli-devel work more as expected. let me know which you'd prefer :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should submit this fix upstream, and defer adding static libraries to this package until they decide how they want to resolve the matter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a known issue that after years they haven't decided on a fix yet unfortunately google/brotli#795

alpine's solution is to perform 2 separate build steps which is something we could alternatively do: https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.19-stable/main/brotli/APKBUILD#L43

@ahesford ahesford marked this pull request as draft February 15, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants